<?php
/**
 * Created by PhpStorm.
 * Clerk: Administrator
 * Date: 2018/8/24
 * Time: 10:28
 */

namespace app\api\model;

use think\Db;
use think\Model;

class Banner extends Model {
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = true;

    /**
     * 验证柜员
     * @param $token
     * @return array|bool|false|\PDOStatement|string|Model
     */
    public static function getBannerList(){
        $data = Db::name('banner')->field('goods_id,banner')->where(['isdelete'=>0])->select();
        if(!empty($data)){
            return $data;
        }else{
            return false;
        }
    }



}